package com.situ.skymall.user.api.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.situ.model.UserAddress;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 用户地址Mapper接口
 */
@Mapper
public interface UserAddressMapper extends BaseMapper<UserAddress> {
    @Select("SELECT * FROM user_address WHERE user_id = #{userId}")
    List<UserAddress> selectByUserId(Integer userId);
}